package com.dycs.service.impl;

import com.dycs.service.ReturnJsonCollectionByJsons;
import com.dycs.utils.JsonCollectionByJsons;
import com.dycs.utils.Result;
import com.dycs.utils.ResultUtil;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class ReturnJsonCollectionByJsonsImpl implements ReturnJsonCollectionByJsons {
    @Override
    public Result<Map<String,Object>> getIntersection(List<Map<String, Object>> list) {
        return ResultUtil.success(JsonCollectionByJsons.getIntersection(list));
    }
}
